home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / bin / invest-chart < prev    next >
Text File  |  2009-10-20  |  482b  |  16 lines

  1. #!/usr/bin/env python
  2.  
  3. import sys, invest.chart, gtk
  4.  
  5. # Prepare i18n
  6. import gettext, locale
  7. gettext.bindtextdomain(invest.defs.GETTEXT_PACKAGE, invest.defs.GNOMELOCALEDIR)
  8. gettext.textdomain(invest.defs.GETTEXT_PACKAGE)
  9. locale.bindtextdomain(invest.defs.GETTEXT_PACKAGE, invest.defs.GNOMELOCALEDIR)
  10. locale.textdomain(invest.defs.GETTEXT_PACKAGE)
  11.  
  12. if __name__ == "__main__":
  13.     win = invest.chart.show_chart(sys.argv[1:])
  14.     win.connect("destroy", lambda x: gtk.main_quit())
  15.     gtk.main()
  16.